home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
4dos
/
4dos_btm.zip
/
GO_C.BTM
< prev
next >
Wrap
Text File
|
1992-04-09
|
2KB
|
143 lines
: *** go_C.btm *** C programming configuration * rhc april 92 * (v 3.3)
iff %1 == ? then
goto SYNTAX
elseiff %1! ne ! then
if %1 ne r goto ERROR
endiff
goto CONT
:SYNTAX
gosub *_row ~ screen %row% 0
text
syntax: go_C [r]
(r: Restore OS configuration)
endtext
goto END
:CONT
gosub *_row ~ screen %row% 1
iff %cfg% ne C_Programming then
iff %1! == ! then
input /w2 Which sub-dir today, mate [MSC, RHC, {WKG}] ? %%s_dir
echo
set o_cfg=%cfg%
set cfg=C_Programming ~ goto C_CFG
else
echo You cannot RESET from %cfg%, mate !!
goto END
endiff
else
iff %1! == ! then
echo Your environment is already set for %cfg%, mate !!
goto END
else
set cfg=%o_cfg% ~ goto OS_CFG
endiff
endiff
:C_CFG
pushd d:
echo Setting your environment for %cfg% ... ~ echo
set helpfiles=d:\c\hlp\*.hlp
set include=d:\c\inc
set lib=e:\c;d:\c\lib\tbx;d:\c\lib\swr;d:\c\lib
path d:\c\rel;d:\c\r_p;%pth%
iff exist e:\bat\*.* then
md e:\c
path e:\c;%path%
copy /q d:\c\lib\?libce.lib e:\c
copy /q d:\c\lib\tbx\?video.lib e:\c
copy /q d:\c\r_p\link.exe e:\c
copy /q d:\c\util\*.btm e:\c
else
echo You do NOT have a RAM disk, mate !! ~ echo
endiff
echo PATH modified. ~ echo
iff %s_dir%! ne ! .and. isdir \c\prg\%s_dir% then
cd \c\prg\%s_dir%
else
cd \c\prg\wkg
endiff
echo Your environment is now set for %cfg%, mate !
goto OUT
:OS_CFG
cls ~ screen 2 1
echo Resetting your environment for %cfg% ... ~ echo
path %pth%
echo PATH reset. ~ echo
delay 2
for %xt in (exe obj) if exist *.%xt select *del /q (*.%xt)
echo
iff exist e:\c\*.* then
*del /q e:\c\*.btm
*del /q e:\c\*.lib
*del /q e:\c\*.obj >&> nul
*del /q e:\c\l*.*
rd e:\c > nul
endiff
set helpfiles=
set include=
set lib=
set o_cfg=
set s_dir=
popd
echo Your environment is now reset for %cfg%, mate !
goto OUT
:ERROR
gosub *_row ~ screen %row% 1
echo Try again, mate! This programme has the syntax described below.
goto SYNTAX
:*_row
set row=%@eval[%_row + 1]
iff %row% ge %_rows then
cls
set row=2
goto *_row
endiff
return
:OUT
:END
set row=